package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_QLDTTXA_HocVien_PhieuLyLich")
public class Tbl_QLDTTXA_HocVien_PhieuLyLich implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private Tbl_QLDTTXA_HocVien hocVienId = null;
   private String dienThoai;
   private Date ngaySinh;
   private String noiSinh;
   private Boolean gioiTinh;
   private String thuongTru;
   private String choOHiennay;
   private Tbl_QLDTTXA_DM_DanToc danTocId = null;
   private Tbl_QLDTTXA_DM_TonGiao tonGiaoId = null;
   private String thongtinDoan;
   private String thongtinDang;
   private String thongtinQD;
   private String hinhAnh;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="hocVienId")
   @ForeignKey(name="FK_tbl_QLDTTXA_HocVien_tbl_QLDTTXA_HocVien_PhieuLyLich")
   public Tbl_QLDTTXA_HocVien getHocVienId() {
	    return hocVienId;
   }
   public void setHocVienId(Tbl_QLDTTXA_HocVien hocVienId) {
	    this.hocVienId=hocVienId;
   }

   public String getDienThoai() {
   	return dienThoai;
   }
   public void setDienThoai(String dienThoai) {
   	this.dienThoai= dienThoai;
   }

   public Date getNgaySinh() {
   	return ngaySinh;
   }
   public void setNgaySinh(Date ngaySinh) {
   	this.ngaySinh= ngaySinh;
   }

   public String getNoiSinh() {
   	return noiSinh;
   }
   public void setNoiSinh(String noiSinh) {
   	this.noiSinh= noiSinh;
   }

   public Boolean getGioiTinh() {
   	return gioiTinh;
   }
   public void setGioiTinh(Boolean gioiTinh) {
   	this.gioiTinh= gioiTinh;
   }

   public String getThuongTru() {
   	return thuongTru;
   }
   public void setThuongTru(String thuongTru) {
   	this.thuongTru= thuongTru;
   }

   public String getChoOHiennay() {
   	return choOHiennay;
   }
   public void setChoOHiennay(String choOHiennay) {
   	this.choOHiennay= choOHiennay;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="danTocId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_DanToc_tbl_QLDTTXA_HocVien_PhieuLyLich")
   public Tbl_QLDTTXA_DM_DanToc getDanTocId() {
	    return danTocId;
   }
   public void setDanTocId(Tbl_QLDTTXA_DM_DanToc danTocId) {
	    this.danTocId=danTocId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="tonGiaoId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_TonGiao_tbl_QLDTTXA_HocVien_PhieuLyLich")
   public Tbl_QLDTTXA_DM_TonGiao getTonGiaoId() {
	    return tonGiaoId;
   }
   public void setTonGiaoId(Tbl_QLDTTXA_DM_TonGiao tonGiaoId) {
	    this.tonGiaoId=tonGiaoId;
   }

   public String getThongtinDoan() {
   	return thongtinDoan;
   }
   public void setThongtinDoan(String thongtinDoan) {
   	this.thongtinDoan= thongtinDoan;
   }

   public String getThongtinDang() {
   	return thongtinDang;
   }
   public void setThongtinDang(String thongtinDang) {
   	this.thongtinDang= thongtinDang;
   }

   public String getThongtinQD() {
   	return thongtinQD;
   }
   public void setThongtinQD(String thongtinQD) {
   	this.thongtinQD= thongtinQD;
   }

   public String getHinhAnh() {
   	return hinhAnh;
   }
   public void setHinhAnh(String hinhAnh) {
   	this.hinhAnh= hinhAnh;
   }
}//endClass 

